package com.share.shop.h5.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2023-03-09
 */
@Data
@Accessors(chain = true)
@TableName("jf_integral_detail")
public class IntegralDetail implements Serializable{

    private static final long serialVersionUID=1L;
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 用户id */
    @TableField(value = "user_id")
    private String userId;
    /** 积分编码 */
    @TableField(value = "intergral_code")
    private String intergralCode;
    /** 0新增积分，1消费积分 */
    private String act;
    /** 消费积分时，兑换的礼物id */
    @TableField(value = "gift_id")
    private Integer giftId;
    /** 积分值 */
    private Integer score;
    /** 创建时间 */
    @TableField(value = "create_time")
    private Date createTime;

}
